@import '~antd/lib/style/themes/default.less';

.mg {
    margin: 15px 0;
}

.card {
    :global {
        .ant-card-head-title {
            color: #000;
            font-weight: 500;
        }
    }

    background: #fff;

    &+.card {
        margin-top: 12px;
    }

    .title {
        margin-bottom: 20px;
    }
}

.container {
    // padding: 16px;
}

.flex {
    display: flex;
}

.BarCharts {
    .fontbox {
        margin-bottom: 15px;
    }

    .chartsBox {
        width: 100%;
        height: 220px;
    }

    .data {
        width: 50%;

        ul {
            padding-left: 25px;

            li {
                position: relative;
                padding-left: 15px;
                font-size: 14px;
                margin-bottom: 10px;
                color: @text-color;

                span {
                    color: @text-color-secondary;
                }

                &:before {
                    content: '';
                    display: block;
                    position: absolute;
                    left: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 8px;
                    height: 8px;
                    border-radius: 100%;
                    background: #5ac8fa;
                }

                &+li:before {
                    background: #007aff;
                }

                &+li+li:before {
                    background: #36cbcb;
                }
            }
        }
    }
}

.leaverCharts {
    display: flex;
    align-items: center;

    .chartsBox {
        position: relative;
        height: 250px;
        width: 100%;
    }

    .data {
        display: flex;
        align-items: center;

        ul {
            li {
                font-size: 14px;
                margin-bottom: 15px;
                color: @text-color;

                .name {
                    position: relative;
                    display: inline-block;
                    vertical-align: middle;
                    padding-left: 15px;
                    width: 95px;

                    &:before {
                        content: '';
                        position: absolute;
                        left: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        display: inline-block;
                        width: 8px;
                        height: 8px;
                        vertical-align: middle;
                        background: #3ba0ff;
                        border-radius: 100%;
                    }
                }

                .gray {
                    display: inline-block;
                    width: 60px;
                    border-left: 1px solid #d9d9d9;
                    padding: 0 10px;
                    color: @text-color-secondary;
                }

                &+li {
                    .namef {
                        &:before {
                            background: #fad337;
                        }
                    }
                }

                &+li+li {
                    .name {
                        &:before {
                            background: #f2637b;
                        }
                    }
                }

                &+li+li+li {
                    .name {
                        &:before {
                            background: #36cbca;
                        }
                    }
                }

                &+li+li+li+li {
                    .name {
                        &:before {
                            background: #ffa22d;
                        }
                    }
                }

                &+li+li+li+li+li {
                    .name {
                        &:before {
                            background: #4dcb73;
                        }
                    }
                }
            }
        }
    }

    .pieTitle {
        position: absolute;
        left: 25%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;

        .gray {
            font-size: 14px;
            margin-bottom: 10px;
        }

        span {
            position: relative;
            display: inline-block;
            vertical-align: middle;
            color: #666;
            padding: 0 5px;
            min-width: 60px;

            i {
                display: inline-block;
                font-style: normal;
                font-size: 20px;
                color: #333;
            }

            &:before {
                content: '';
                display: block;
                position: absolute;
                left: 0;
                top: 20%;
                width: 1px;
                height: 60%;
                background: #d9d9d9;
            }

            &:first-child:before {
                display: none;
            }
        }
    }
}

.abnormal {
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
    color: @text-color;
    font-size: 14px;
    padding: 26.5px 0;

    li {
        flex: 1;

        .name {
            position: relative;
            font-weight: 500;
            margin-bottom: 13px;

            &:hover {
                color: @primary-color;

                .tips {
                    opacity: 1;
                    visibility: visible;
                }
            }
        }

        .tips {
            opacity: 0;
            visibility: hidden;
            position: absolute;
            left: 50%;
            top: 100%;
            width: 230px;
            margin-left: -115px;
            // transform: translateX(-50%);
            padding: 5px 10px;
            font-size: 14px;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 2px 8px 0 @text-color-secondary;
            background: #fff;
            transition: all 0.5s ease;
            z-index: 1;
        }
    }
}

.form {
    background: #fff;
    text-align: right;
    padding: 16px !important;
}

.fontbox {
    display: inline-block;
    vertical-align: baseline;

    &+.fontbox {
        margin-left: 25px;
    }

    span {
        font-size: 14px;
        color: @text-color-secondary;
    }

    b {
        color: @heading-color;

        &.bigFontSize {
            font-size: 30px;
        }

        &.down {
            color: #ff4d4f;

            i {
                display: inline-block;
                transform: scale(0.8);
                font-size: 10px;
                margin-right: 5px;
            }
        }

        &.up {
            color: #13c2c2;

            i {
                display: inline-block;
                // transform: scale(.8);
                font-size: 10px;
                margin-right: 5px;
                transform: rotate(-180deg);
            }
        }
    }

    .col {
        display: inline-block;

        &+.col {
            margin-left: 25px;
        }
    }
}

.gray {
    color: @text-color-secondary;
}

.red {
    color: #f5222d;
}

.links {
    a {
        margin-left: 32px;
    }
}
